package cn.momoshenchi.medicine.vo;

import cn.momoshenchi.medicine.pojo.PrescriptionDrug;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/7/13 - 15:11
 */
public class Prescribe
{
    @NotBlank(message = "用户Id不能为空")
    private  String userId;

    @NotBlank(message = "复诊Id不能为空")
    private  String consultId;

    @NotBlank(message = "机构Id不能为空")
    private  String orgId;

    @NotBlank(message = "医生Id不能为空")
    private  String doctorId;

    @NotBlank(message = "医生姓名不能为空")
    private  String doctorName;

    private Date createTime;

    public String getOrgName()
    {
        return orgName;
    }

    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    private String orgName;

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getDoctorName()
    {
        return doctorName;
    }

    public void setDoctorName(String doctorName)
    {
        this.doctorName = doctorName;
    }

    @NotBlank(message = "处方类型不能为空")
    private  String prescriptionType;

    @Valid
    private List<Drug>drugList;

    public String getOrgId()
    {
        return orgId;
    }

    public void setOrgId(String orgId)
    {
        this.orgId = orgId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getConsultId()
    {
        return consultId;
    }

    public void setConsultId(String consultId)
    {
        this.consultId = consultId;
    }

    public String getDoctorId()
    {
        return doctorId;
    }

    public void setDoctorId(String doctorId)
    {
        this.doctorId = doctorId;
    }

    public String getPrescriptionType()
    {
        return prescriptionType;
    }

    public void setPrescriptionType(String prescriptionType)
    {
        this.prescriptionType = prescriptionType;
    }

    public List<Drug> getDrugList()
    {
        return drugList;
    }

    public void setDrugList(List<Drug> drugList)
    {
        this.drugList = drugList;
    }
}
